package com.sg.dto.biz.bff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc BffThemeEvaluationCrossDto
 * @使用场景
 */
@Data
public class BffThemeEvaluationCrossDto implements Serializable {

    /**
     * 主题整合评价模板ID
     */
    @ApiModelProperty("主题整合评价模板ID")
    private String themeEvaTempId;

    /**
     * 评价模板ID
     */
    @ApiModelProperty("评价模板ID")
    private String evaTempId;

    /**
     * 关联整合主题ID
     */
    @ApiModelProperty("关联整合主题ID")
    private String integrateThemeId;

    /**
     * 是否展示
     */
    @ApiModelProperty("是否展示")
    private String isShow;

    /**
     * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffThemeEvaluationCrossDto that = (BffThemeEvaluationCrossDto) o;
        return themeEvaTempId == that.themeEvaTempId && evaTempId == that.evaTempId && integrateThemeId == that.integrateThemeId && isShow == that.isShow && subjectLifeCycle == that.subjectLifeCycle;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), themeEvaTempId, evaTempId, integrateThemeId, isShow, subjectLifeCycle);
    }

}
